Optimal. Leaf size=393 \[ \frac{\sqrt{2} B \sqrt{b^2-4 a c} \sqrt{d+e x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} e}{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}\right )}{c e \sqrt{a+b x+c x^2} \sqrt{\frac{c (d+e x)}{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{2 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} (B d-A e) \sqrt{\frac{c (d+e x)}{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{\frac{\sqrt{b^2-4 a c}+b+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right ),-\frac{2 e \sqrt{b^2-4 a c}}{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}\right )}{c e \sqrt{d+e x} \sqrt{a+b x+c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.212577, antiderivative size = 393, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.138, Rules used = {843, 718, 424, 419} \[ \frac{\sqrt{2} B \sqrt{b^2-4 a c} \sqrt{d+e x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} e}{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}\right )}{c e \sqrt{a+b x+c x^2} \sqrt{\frac{c (d+e x)}{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{2 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} (B d-A e) \sqrt{\frac{c (d+e x)}{2 c d-e \left (\sqrt{b^2-4 a c}+b\right )}} F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} e}{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}\right )}{c e \sqrt{d+e x} \sqrt{a+b x+c x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 843
Rule 718
Rule 424
Rule 419
Rubi steps
\begin{align*} \int \frac{A+B x}{\sqrt{d+e x} \sqrt{a+b x+c x^2}} \, dx &=\frac{B \int \frac{\sqrt{d+e x}}{\sqrt{a+b x+c x^2}} \, dx}{e}+\frac{(-B d+A e) \int \frac{1}{\sqrt{d+e x} \sqrt{a+b x+c x^2}} \, dx}{e}\\ &=\frac{\left (\sqrt{2} B \sqrt{b^2-4 a c} \sqrt{d+e x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{1+\frac{2 \sqrt{b^2-4 a c} e x^2}{2 c d-b e-\sqrt{b^2-4 a c} e}}}{\sqrt{1-x^2}} \, dx,x,\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )}{c e \sqrt{\frac{c (d+e x)}{2 c d-b e-\sqrt{b^2-4 a c} e}} \sqrt{a+b x+c x^2}}+\frac{\left (2 \sqrt{2} \sqrt{b^2-4 a c} (-B d+A e) \sqrt{\frac{c (d+e x)}{2 c d-b e-\sqrt{b^2-4 a c} e}} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x^2} \sqrt{1+\frac{2 \sqrt{b^2-4 a c} e x^2}{2 c d-b e-\sqrt{b^2-4 a c} e}}} \, dx,x,\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )}{c e \sqrt{d+e x} \sqrt{a+b x+c x^2}}\\ &=\frac{\sqrt{2} B \sqrt{b^2-4 a c} \sqrt{d+e x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} e}{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}\right )}{c e \sqrt{\frac{c (d+e x)}{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}} \sqrt{a+b x+c x^2}}-\frac{2 \sqrt{2} \sqrt{b^2-4 a c} (B d-A e) \sqrt{\frac{c (d+e x)}{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} e}{2 c d-\left (b+\sqrt{b^2-4 a c}\right ) e}\right )}{c e \sqrt{d+e x} \sqrt{a+b x+c x^2}}\\ \end{align*}
Mathematica [C] time = 5.79341, size = 814, normalized size = 2.07 \[ -\frac{(d+e x)^{3/2} \left (-\frac{4 B \sqrt{\frac{c d^2+e (a e-b d)}{-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}}} (a+x (b+c x)) e^2}{(d+e x)^2}+\frac{i \sqrt{2} B \left (2 c d-b e+\sqrt{\left (b^2-4 a c\right ) e^2}\right ) \sqrt{\frac{-2 a e^2+2 c d x e+b (d-e x) e+\sqrt{\left (b^2-4 a c\right ) e^2} (d+e x)}{\left (2 c d-b e+\sqrt{\left (b^2-4 a c\right ) e^2}\right ) (d+e x)}} \sqrt{\frac{2 a e^2-2 c d x e+b (e x-d) e+\sqrt{\left (b^2-4 a c\right ) e^2} (d+e x)}{\left (-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}\right ) (d+e x)}} E\left (i \sinh ^{-1}\left (\frac{\sqrt{2} \sqrt{\frac{c d^2-b e d+a e^2}{-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}}}}{\sqrt{d+e x}}\right )|-\frac{-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}}{2 c d-b e+\sqrt{\left (b^2-4 a c\right ) e^2}}\right )}{\sqrt{d+e x}}-\frac{i \sqrt{2} \left (-b e B+\sqrt{\left (b^2-4 a c\right ) e^2} B+2 A c e\right ) \sqrt{\frac{-2 a e^2+2 c d x e+b (d-e x) e+\sqrt{\left (b^2-4 a c\right ) e^2} (d+e x)}{\left (2 c d-b e+\sqrt{\left (b^2-4 a c\right ) e^2}\right ) (d+e x)}} \sqrt{\frac{2 a e^2-2 c d x e+b (e x-d) e+\sqrt{\left (b^2-4 a c\right ) e^2} (d+e x)}{\left (-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}\right ) (d+e x)}} \text{EllipticF}\left (i \sinh ^{-1}\left (\frac{\sqrt{2} \sqrt{\frac{c d^2-b e d+a e^2}{-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}}}}{\sqrt{d+e x}}\right ),-\frac{-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}}{2 c d-b e+\sqrt{\left (b^2-4 a c\right ) e^2}}\right )}{\sqrt{d+e x}}\right )}{2 c e^2 \sqrt{\frac{c d^2+e (a e-b d)}{-2 c d+b e+\sqrt{\left (b^2-4 a c\right ) e^2}}} \sqrt{a+x (b+c x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.044, size = 1014, normalized size = 2.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{B x + A}{\sqrt{c x^{2} + b x + a} \sqrt{e x + d}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{c x^{2} + b x + a}{\left (B x + A\right )} \sqrt{e x + d}}{c e x^{3} +{\left (c d + b e\right )} x^{2} + a d +{\left (b d + a e\right )} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{A + B x}{\sqrt{d + e x} \sqrt{a + b x + c x^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]